package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Accident;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccidentMapper {
    void deleteByPrimaryKey(Long id);

    void insert(Accident record);

    Accident selectByPrimaryKey(Long id);

    List<Accident> selectAll();

    void updateByPrimaryKey(Accident record);


     //根据id来修改状态值
    void changeStatus(@Param("accidentId") long id, @Param("statusId") long status);
}